﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public class TuyenBayBUS
    {
        TuyenBayDAO sbDAO = new TuyenBayDAO();
        public DataTable LayDanhSach()
        {
            return sbDAO.LayDSTuyenBay();

        }

        public void Them(TuyenBayDTO ma)
        {
            //sbDAO.Them(ma);
            sbDAO.Them(ma);
        }

        public void Xoa(int index)
        {
            sbDAO.Xoa(index);

        }
        public void CapNhat(TuyenBayDTO sbDTO)
        {

            sbDAO.CapNhat(sbDTO);

        }


    }
}
